import * as actionTypes from './constants';

const defaultState = {
    topBanners: []
}
export default function reducer(state = defaultState, action) {
    switch(action.type){
        case actionTypes.CHANGE_TOP_BANNERS:
            return {...state, topBanners: action.topBanners}
        default:
            return {...state}
    }
}